package com.wireless.entity;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;

/**
 * Menutypetbl entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "menutypetbl")
public class Menutypetbl implements java.io.Serializable {

	// Fields
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id")
	private Integer id;
	private String name;
	@OneToMany(targetEntity = Menutbl.class, cascade = CascadeType.MERGE)
	@Fetch(FetchMode.JOIN)
	@JoinColumn(name = "typeID")
	private Set menutbls = new HashSet(0);

	// Constructors

	/** default constructor */
	public Menutypetbl() {
	}

	/** minimal constructor */
	public Menutypetbl(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public Menutypetbl(Integer id, String name, Set menutbls) {
		this.id = id;
		this.name = name;
		this.menutbls = menutbls;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set getMenutbls() {
		return this.menutbls;
	}

	public void setMenutbls(Set menutbls) {
		this.menutbls = menutbls;
	}

}